package src.main.原型模式;

public class Son{
    private int age=10;
    private String name;



    public static void main(String[] args) {
        Son son = new Son();
        Son son1=son;
        son1.age=21;
        System.out.println(son.age);//21

    }
}